const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

// 构造对象
module.exports = {
    entry: './business/script/layim-mobile.js',
    output: {
        path: path.resolve(__dirname, 'dist/business/script'),
        filename: '[name].js'
    },
    plugins: [
        new CopyPlugin([
          { from: 'business', to: path.resolve(__dirname, 'dist/business'),force:false },
          { from: 'src', to: path.resolve(__dirname, 'dist/src'),force:false },
        ])
      ],
};